package snippets.cse524.activeDates;

import java.util.regex.Matcher;

import info.bliki.wiki.filter.Util;

import org.apache.commons.lang3.StringUtils;

import snippets.utils.Utils;

public class SuccessionPerson extends SuccessionInfo {
	public static String getPersonName(String input) {
		input = input.replaceAll(Utils.CUSTOM_WIKI_LINK_REGEX, "$2");
		return input;
	}
	
	public WikiPerson person;

	public SuccessionPerson(String title, int times) {
		super(getPersonName(title), times);
		
		person = new WikiPerson(super.getTitle());			
	}
	
	public SuccessionPerson(WikiPerson person, int times) {
		super(person.getName(), times);
		this.person = person;			
	}
	
	public WikiPerson getPerson() {
		return person;
	}
}

